#ifndef TCAPI_JNI_UTIL_H
#define TCAPI_JNI_UTIL_H

#include <jni.h>
#include <string>

class JNIHandle {
private:
    JNIHandle();

    ~JNIHandle();

public:
    void Init(JNIEnv *env);

    static JNIHandle *GetInstance();

    JavaVM *jvm;

    /** PicTranscoder */
    jclass cls_picTranscoder;
    jfieldID fid_picTranscoder_maxParallelNum;
    jfieldID fid_picTranscoder_ctx;


    /** Task */
    jclass cls_task;
    jmethodID mid_apiResult_init;
    jfieldID fid_task_inputPath;
    jfieldID fid_task_outPath;
    jfieldID fid_task_thumbnailPath;
    jfieldID fid_task_thumbnailWidth;
    jfieldID fid_task_profile;
    jfieldID fid_task_quality;
    jfieldID fid_task_isSync;



};


#endif //TCAPI_JNI_UTIL_H
